import os
basedir = os.path.abspath(os.path.dirname(__file__))

class Config:

	# MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.googlemail.com')
	# MAIL_PORT = int(os.environ.get('MAIL_PORT', '587'))
	# MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS', 'true').lower() in \
	# ['true', 'on', '1']
	# MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
	# MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
	# FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
	# FLASKY_MAIL_SENDER = 'Flasky Admin <flasky@example.com>'
	# FLASKY_ADMIN = os.environ.get('FLASKY_ADMIN')
	SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
	SQLALCHEMY_TRACK_MODIFICATIONS = False
	
	@staticmethod
	def init_app(app):
		pass
	
class DevelopmentConfig(Config):
	DEBUG = True
	SQLALCHEMY_DATABASE_URI ='mysql://dev_test:qinxue2017@1**.55.52.2*8:3**6/test?charset=utf8mb4'
	
config = {
'development': DevelopmentConfig
}